From: Claudio Cambra Date: Fri, 24 Jan 2025 03:55:38 +0000 (+0800) Subject: shell_integration/macOS/FileProviderUIExt: Add internal link share type to NKShare... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~79^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=c384b8339edc1b4a582302226609f86bb7ce1ef3;p=nextcloud-desktop.git shell_integration/macOS/FileProviderUIExt: Add internal link share type to NKShare extension Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Extensions/NKShare+Extensions.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Extensions/NKShare+Extensions.swift index 2527fb83c..82c9748d6 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Extensions/NKShare+Extensions.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Extensions/NKShare+Extensions.swift @@ -10,6 +10,7 @@ import NextcloudKit extension NKShare { enum ShareType: Int { + case internalLink = -1 case user = 0 case group = 1 case publicLink = 3 @@ -31,6 +32,11 @@ extension NKShare { var typeImage: NSImage? { var image: NSImage? switch shareType { + case ShareType.internalLink.rawValue: + image = NSImage( + systemSymbolName: "square.and.arrow.up.circle.fill", + accessibilityDescription: "Internal link share icon" + ) case ShareType.user.rawValue: image = NSImage( systemSymbolName: "person.circle.fill", @@ -85,6 +91,8 @@ extension NKShare { } switch shareType { + case ShareType.internalLink.rawValue: + return "Internal share (requires access to file)" case ShareType.user.rawValue: return "User share (\(shareWith))" case ShareType.group.rawValue: